package com.github.lee.unsplash.model.api

import androidx.annotation.IntRange
import com.github.lee.unsplash.domain.TopicBean
import com.github.lee.unsplash.domain.response.BaseResult
import retrofit2.http.GET
import retrofit2.http.Query

interface TopicApi {

    @GET("topics")
    suspend fun topics(
        @Query("page") page: Int = 1,
        @IntRange(from = 10) @Query("per_page") size: Int = 10,
        @Query("order_by") orderBy: String? = null,
        @Query("ids") ids: String? = null
    ): BaseResult<List<TopicBean>>

}
